package com.itheima.test03;

import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

public class A implements I, InitializingBean {
    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("初始化A");
    }

    @PostConstruct
    public void init() {
        System.out.println("初始化PostConstruct");
    }
}
